<?php

class LoginForm extends Core_Form
{
    public function __construct($options = null) 
    { 
        parent::__construct($options);

        $email = $this->createElement('text', 'email')
        			  ->setRequired(true)
		              ->setAttrib('class', 'textbox')
		              ->removeDecorator('HtmlTag')
		              ->removeDecorator('label')
		              ->addValidator('EmailAddress')
		              ->addErrorMessage('Invalid Email id');

        $password = $this->createElement('password', 'password')
        				 ->setRequired(true)
		                 ->setAttrib('class', 'textbox')
		                 ->removeDecorator('HtmlTag')
		                 ->removeDecorator('label')
		                 ->addValidator('stringLength', false, array(6, 8));                    
                      
        $this->addElements(array($email, $password));
    }
}
?>